package br.unifor.cmi.controller.server.impl.jgcs;

/**
 * Provide configuration for the JGCS implementation for the ServerClusterViewManager.
 * @author UNIFOR - CMI team
 * @see JGCSClusterViewManager
 */
public final class Config extends org.ow2.cmi.controller.server.ServerConfig {

    /**
     * Default reconnection timeout for JGroups DistributedTree.
     */
    private static final long DEFAULT_JGCS_RECONNECTION_TIMEOUT = 5000;

    /**
     * JGroups configuration filename.
     */
    private String jgcsProperties;

    /**
     * Reconnection timeout for JGroups DistributedTree.
     */
    private long recoTimeout = DEFAULT_JGCS_RECONNECTION_TIMEOUT;

    public String getJgcsProperties() {
		return jgcsProperties;
	}


	public void setJgcsProperties(String jgcsProperties) {
		this.jgcsProperties = jgcsProperties;
	}


	public long getRecoTimeout() {
        return recoTimeout;
    }


    public void setRecoTimeout(final long recoTimeout) {
        this.recoTimeout = recoTimeout;
    }
}
